package com.example.eeuse.service;

import com.example.eeuse.mapper.VedaSnapshotMapper;
import com.example.eeuse.model.EsVedaSnapshot;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MockServiceImpl implements MockService{

    @Autowired
    private VedaSnapshotMapper vedaSnapshotMapper;

    @Override
    public void save(EsVedaSnapshot esVedaSnapshot)
    {
        vedaSnapshotMapper.insert(esVedaSnapshot);
    }


    public EsVedaSnapshot find(String id)
    {
       return vedaSnapshotMapper.selectById(id);
    }
}
